//
//  DTHTableViewCell.m
//  DanTang
//
//  Created by honeyrr on 2017/9/13.
//  Copyright © 2017年 honeyrr. All rights reserved.
//

#import "DTHTableViewCell.h"


@implementation DTHTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self = [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([DTHTableViewCell class]) owner:nil options:nil] lastObject];
        self.itemImg.layer.cornerRadius = 8;
        self.itemImg.layer.masksToBounds = YES;
        
        self.itemLikesBtn.layer.cornerRadius = 14;
        self.itemLikesBtn.layer.masksToBounds = YES;
        
//        self.selectionStyle = UITableViewCellSelectionStyleNone;
        // 开启离屏渲染
//        self.itemImg.layer.shouldRasterize = YES;
//        self.itemImg.layer.rasterizationScale = [[UIScreen mainScreen] scale];
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
